<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	if($_SESSION['logout_forward']){
		$url=$_SESSION['logout_forward'];
	}else{
		$url='core/member.login/';
	}
	model('core/member')->logout($_SESSION['uid']);
	if($_SESSION['os']=='wxapp'){
		exi('退出成功！','success',$url);
	}else{
		exi('退出成功。','success',custom_url($url,true));
	}
	
}
?>